package com.abaaba.project2.service;

import com.abaaba.project2.bean.Role;
import com.abaaba.project2.bean.bo.PermissionPostBo;
import com.abaaba.project2.bean.bo.RoleListBo;
import com.abaaba.project2.bean.vo.GeneralListVo;
import com.abaaba.project2.bean.vo.PermissionsVo;
import com.abaaba.project2.bean.vo.RoleVo;

import java.util.List;

public interface AdminRoleService {
    List<RoleVo> getRoleOptions();

    GeneralListVo<Role> getRoleList(RoleListBo roleListBo);

    Role createRole(Role role);

    void updateRole(Role role);

    Integer deleteRole(Role role);

    PermissionsVo getPermissions(Integer id);

    Integer postPermissions(PermissionPostBo permissionPostBo);
}
